/**
 * ProxyClientProxyClient.java
 * 
 * Created Date: 2014年11月24日
 *				
 * Copyright (c)  Centling Technologies Co., Ltd.
 *
 * This software is the confidential and proprietary information of
 *  Centling Technologies Co., Ltd. ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in accordance
 * with the terms of the license agreement you entered into with
 * Centling Technologies Co., Ltd.
 */
package com.centling.bluecollar.customer.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;
/**
 * @author ted.ma  
 *
 */
@Entity
@Table(name="t_proxyBusniess")  //代理客户
public class ProxyBusiness {
	private String id;
	private int peopleNum;//输送人数
	
	private double rebateAmount;//返款金额
	
	private String transTime;//输送时间
	
	private ProxyClient proxyClient;
	
	private String reserve;//备注
	
	private List<EnterpriseCustomer> enterpriseCustoms;

	
	
	
	
	/**
	 * @return the enterpriseCustoms
	 */
	@Transient
	public List<EnterpriseCustomer> getEnterpriseCustoms() {
	
		return enterpriseCustoms;
	}




	
	/**
	 * @param enterpriseCustoms the enterpriseCustoms to set
	 */
	public void setEnterpriseCustoms(List<EnterpriseCustomer> enterpriseCustoms) {
	
		this.enterpriseCustoms = enterpriseCustoms;
	}







	
	/**
	 * @return the transTime
	 */
	public String getTransTime() {
	
		return transTime;
	}





	
	/**
	 * @param transTime the transTime to set
	 */
	public void setTransTime(String transTime) {
	
		this.transTime = transTime;
	}





	/**
	 * @return the proxyClient
	 */
	@ManyToOne
	@JoinColumn(name = "proxyClientId")
	public ProxyClient getProxyClient() {
	
		return proxyClient;
	}


	
	/**
	 * @param proxyClient the proxyClient to set
	 */
	public void setProxyClient(ProxyClient proxyClient) {
	
		this.proxyClient = proxyClient;
	}


	

	
	
	/**
	 * @return the id
	 */
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
	
		return id;
	}




	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
	
		this.id = id;
	}




	/**
	 * @return the peopleNum
	 */
	public int getPeopleNum() {
	
		return peopleNum;
	}

	
	/**
	 * @param peopleNum the peopleNum to set
	 */
	public void setPeopleNum(int peopleNum) {
	
		this.peopleNum = peopleNum;
	}

	
	/**
	 * @return the rebateAmount
	 */
	public double getRebateAmount() {
	
		return rebateAmount;
	}

	
	/**
	 * @param rebateAmount the rebateAmount to set
	 */
	public void setRebateAmount(double rebateAmount) {
	
		this.rebateAmount = rebateAmount;
	}

	/**
	 * @return the reserve
	 */
	@Column(length = 400)
	public String getReserve() {
	
		return reserve;
	}

	
	/**
	 * @param reserve the reserve to set
	 */
	public void setReserve(String reserve) {
	
		this.reserve = reserve;
	}
	
	
}
